﻿
//

//


using EMSNet.Core;
namespace EMSNet.Service.Entity;

/// <summary>
/// 能源字典
/// </summary>
[Tenant("1300000000003")]
[SugarTable("ems_dictionary", "能源字典")]
public class EmsDictionary : EntityBase
{
    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnName = "name", ColumnDescription = "名称", Length = 32)]
    public virtual string? name { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    [SugarColumn(ColumnName = "code", ColumnDescription = "编码", Length = 32)]
    public virtual string? code { get; set; }
    
    /// <summary>
    /// 父Id
    /// </summary>
    [SugarColumn(ColumnName = "pid", ColumnDescription = "父Id", Length = 32)]
    public virtual long? pid { get; set; }
    
    /// <summary>
    /// 租户Id
    /// </summary>
    [SugarColumn(ColumnName = "TenantId", ColumnDescription = "租户Id")]
    public virtual long? TenantId { get; set; }
    
    /// <summary>
    /// 创建者部门Id
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
    public virtual long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 创建者部门名称
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
    public virtual string? CreateOrgName { get; set; }
    
}
